package com.yaodian100.ec.activity.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import com.yaodian100.core.common.entity.BaseEntity;

@Entity
@Table(name = "EC_ACTIVITY_STYLE")
public class ActivityStyle extends BaseEntity {

	private static final long serialVersionUID = -5100576839406609181L;

	@Id
	@Column(name = "ID")
	private Long id;
	
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "GROUP_ID")
	@NotFound(action = NotFoundAction.IGNORE)
	private ActivityStyleGroup styleGroup;
	
	@Column(name = "NAME", nullable = false)
	private String name;
	
	@Column(name = "DIV_CLASS")
	private String divClass;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public ActivityStyleGroup getStyleGroup() {
		return styleGroup;
	}

	public void setStyleGroup(ActivityStyleGroup styleGroup) {
		this.styleGroup = styleGroup;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDivClass() {
		return divClass;
	}

	public void setDivClass(String divClass) {
		this.divClass = divClass;
	}
	
	
}
